
var base64Str='emhhbmdzYW46MTIzNDU2';

const buff=Buffer.from(base64Str,'base64').toString('utf-8');
// var baserUtf=buff.toString('utf-8');
console.log(buff);
const [userName,password]=buff.split(':');
console.log("用户名："+userName+"密码:"+password);